define(["./superView"],function(SuperView){
	var DeviceView = function(){};

	Func.extend(DeviceView, SuperView);

	DeviceView.prototype.superTable = null;

	DeviceView.prototype.initTable = function(){
		var that = this;
		superTable = $("#deviceListTable").superTable({
        	checkbox: true,
			showData: function(data){
				$("#deviceListBody").append(that.render($("#deviceListTmpl").html(),data));
			},
			pageConfig: {
				url: "/backend3/test/data/deviceList.json?_="+new Date().getTime(),
				scrollTarget: ".fixedDiv"
			},
			events: {
				click: [{
					selector: "tr",
					triggerBySelectAll: true, //标识是否在点击全选时触发（仅点击全选时）
					func: function(e, target){
						// alert("1");
                    }
				}]
			}
		});
	};

	return DeviceView;
});